import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { RealTimeRoutingModule } from './real-time-routing.module';
import {RealTimeComponent} from "./real-time.component";
import {RealTimeService} from "./real-time.service";
import {SafePipe} from "../../../../pipe/safe.pipe";
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import {StompConfig, StompService} from '@stomp/ng2-stompjs';
import {RabbitConfig} from "../../../../app.config";

@NgModule({
  imports: [
    CommonModule,
    RealTimeRoutingModule,
    FormsModule,
    ReactiveFormsModule
  ],
  declarations: [
    RealTimeComponent,
    SafePipe
  ],
  providers:[
    RealTimeService,
    StompService,
    {
      provide: StompConfig,
      useValue: RabbitConfig
    }
  ]
})
export class RealTimeModule { }
